export const tableComponentConfig = {
  removeButton: () =>
    import('@/views/purchase-plan/components/tableComp/removeButton.vue'),
};

export const tableRenderConfig = {
  businessStatusName: {
    title: '制单状态',
    dataIndex: 'businessStatusName',
    slotName: 'businessStatusName',
    width: 150,
  },
  planListNo: { title: '计划编号', dataIndex: 'planListNo', width: 150 },
  missionNo: { title: '任务编号', dataIndex: 'missionNo', width: 250 },
  mdsItemCode: { title: '物料编码', dataIndex: 'mdsItemCode', width: 150 },
  mdsItemName: { title: '物料名称', dataIndex: 'mdsItemName', width: 150 },
  productTypeNo: { title: '成品型号', dataIndex: 'productTypeNo', width: 150 },
  specification: { title: '规格', dataIndex: 'specification', width: 150 },
  technicalAgreement: {
    title: '技术协议',
    dataIndex: 'technicalAgreement',
    width: 150,
  },
  mdsCategoryLv1NameBox: {
    title: '品类名称',
    dataIndex: 'mdsCategoryLv1Name',
    width: 150,
  },
  measureUnit: { title: '计量单位', dataIndex: 'measureUnit', width: 150 },
  reqQty: { title: '需求数量', dataIndex: 'reqQty', width: 150 },
  planQty: { title: '订货数量', dataIndex: 'planQty', width: 150 },
  reqDate: { title: '需求日期', dataIndex: 'reqDate', width: 250 },
  planArrivalDate: {
    title: '计划到货日期',
    dataIndex: 'planArrivalDate',
    width: 250,
  },
  info37: { title: '代料依据', dataIndex: 'info37', width: 150 }, // 数据库没有这个字段，先显示在列表后期加上
  balanceResult: { title: '平衡结果', dataIndex: 'balanceResult', width: 150 },
  orderAddress: { title: '订货点详情', dataIndex: 'orderAddress', width: 150 },

  rejectReason: {
    title: '拒绝原因',
    dataIndex: 'rejectReason',
    slotName: 'rejectReason',
    width: 150,
  },
  rejectUserName: { title: '拒绝人', dataIndex: 'rejectUserName', width: 150 },
  rejectDate: { title: '拒绝时间', dataIndex: 'rejectDate', width: 250 },
  technicalConditionDesc: {
    title: '附加技术条件描述',
    dataIndex: 'technicalConditionDesc',
    width: 150,
  },
  purchaseState: {
    title: '是否采购',
    dataIndex: 'purchaseStateName',
    width: 150,
  },

  requireSourceType: {
    title: '需求来源',
    dataIndex: 'requireSourceType',
    width: 150,
  },
  index: { title: '序号', dataIndex: 'index', slotName: 'index', width: 150 },
  secretLevel: {
    title: '密级',
    dataIndex: 'secretLevel',
    componentName: 'secretLevel',
    slotName: 'secretLevel',
    width: 150,
  },
  productSuperTypeNo: {
    title: '成品父型号',
    dataIndex: 'productSuperTypeNo',
    width: 150,
  },
  supplier: { title: '供应商', dataIndex: 'supplierName', width: 150 },
  divideRoute: { title: '成品分工路线', dataIndex: 'divideRoute', width: 150 },
  millTypeCode: { title: '机型', dataIndex: 'millTypeCode', width: 150 },
  batchNo: { title: '批次', dataIndex: 'batchNo', width: 150 },
  batchFlowNo: { title: '架次', dataIndex: 'batchFlowNo', width: 150 },
  info46: { title: '待接收人', dataIndex: 'info46', width: 150 }, // 字段空着，后续后台会给
  directorUserName: {
    title: '接收人',
    dataIndex: 'directorUserName',
    width: 150,
  },
  editUserName: { title: '计划编制人', dataIndex: 'editUserName', width: 150 },
  approveTime: {
    title: '计划审批通过时间',
    dataIndex: 'approveTime',
    width: 250,
  },

  startApproveTime: {
    title: '计划审批通过时间',
    dataIndex: 'startApproveTime',
    width: 250,
  },
  endApproveTime: {
    title: '计划审批通过时间(结束)',
    dataIndex: 'endApproveTime',
    width: 250,
  },
  manufactureType: {
    title: '制造类型',
    dataIndex: 'manufactureTypeName',
    width: 150,
  },
  requireChangeStatus: {
    title: '需求是否变更',
    dataIndex: 'requireChangeStatusName',
    width: 150,
  },
  requireChangeIncrementQry: {
    title: '需求变更增加(+)或减少(-)',
    dataIndex: 'requireChangeIncrementQry',
    width: 300,
  },
  brandNo: { title: '牌号', dataIndex: 'brandNo', width: 150 },
  technicalCondition: {
    title: '技术条件',
    dataIndex: 'technicalCondition',
    width: 150,
  },
  substanceSize: { title: '材料尺寸', dataIndex: 'substanceSize', width: 150 },
  transcodeMachineNo: {
    title: '转码机型',
    dataIndex: 'transcodeMachineNo',
    width: 150,
  },
  transcodePicNo: {
    title: '转码图号',
    dataIndex: 'transcodePicNo',
    width: 150,
  },
  mdsCategoryLv1Name: {
    title: '一级品类',
    dataIndex: 'mdsCategoryLv1Name',
    width: 150,
  },
  mdsCategoryLv2Name: {
    title: '二级品类',
    dataIndex: 'mdsCategoryLv2Name',
    width: 150,
  },
  mdsCategoryLv3Name: {
    title: '三级品类',
    dataIndex: 'mdsCategoryLv3Name',
    width: 150,
  },
  picNo: { title: '图号', dataIndex: 'picNo', width: 150 },
  componentPicNo: { title: '零组件图号', dataIndex: 'picNo', width: 150 },
  picNoVersion: { title: '图号版本', dataIndex: 'picNoVersion', width: 150 },
  processStateNo: {
    title: '工艺状态号',
    dataIndex: 'processStateNo',
    width: 150,
  },
  divideRoute1: { title: '分工路线', dataIndex: 'divideRoute', width: 150 },
  outSourceDeptName: {
    title: '外包提出单位',
    dataIndex: 'outSourceDeptName',
    width: 150,
  },
  machineContent: {
    title: '加工内容',
    dataIndex: 'machineContent',
    width: 150,
  },
  planReceiveTime: {
    title: '计划接收时间',
    dataIndex: 'planReceiveTime',
    width: 250,
  },
  executionStatus: {
    title: '执行状态',
    dataIndex: 'executionStatus',
    width: 150,
  },
  mdsItemKeyAttributes: {
    title: '物料关键属性',
    dataIndex: 'mdsItemKeyAttributes',
    width: 150,
  },
  // info75: { title: '附加技术条件描述', dataIndex: 'notes', width: 150 },
  supplierName: { title: '供应商名称', dataIndex: 'supplierName', width: 150 },
  purchasePlanBusinessStatus: {
    title: '采购计划制单状态',
    dataIndex: 'businessStatusName',
    slotName: 'businessStatusName',
    width: 150,
  },
  purchasePlanListNo: {
    title: '采购计划编号',
    dataIndex: 'planListNo',
    width: 250,
  },
  billStatus: { title: '单据状态', dataIndex: 'billStatusName', width: 150 },
  jointQty: { title: '合同数量', dataIndex: 'jointQty', width: 150 },
  orderQty: { title: '订单数量', dataIndex: 'orderQty', width: 150 },
  preArrivalQty: {
    title: '预到货数量',
    dataIndex: 'preArrivalQty',
    width: 150,
  },
  arrivalConfirmQty: {
    title: '到货确认数量',
    dataIndex: 'arrivalConfirmQty',
    width: 150,
  },
  inspectionQty: { title: '送检数量', dataIndex: 'inspectionQty', width: 150 },
  reservedQty: { title: '保留数量', dataIndex: 'reservedQty', width: 150 },
  qualifiedQty: { title: '合格数量', dataIndex: 'qualifiedQty', width: 150 },
  rejectedQty: { title: '不合格数量', dataIndex: 'rejectedQty', width: 150 },
  inboundQty: { title: '入库数量', dataIndex: 'inboundQty', width: 150 },
  typeMark: { title: '型号', dataIndex: 'productTypeNo', width: 150 },
  letterOfCommissioningQty: {
    title: '投产函数量',
    dataIndex: 'letterOfCommissioningQty',
    width: 150,
  },
  reservedDesc: { title: '保留信息', dataIndex: 'reservedDesc', width: 150 },
  outSourceDept: {
    title: '外包单位',
    dataIndex: 'outSourceDeptName',
    width: 150,
  },

  authorizedEditUserName: {
    title: '编制人',
    dataIndex: 'editUserName',
    width: 150,
  },
  editDate: { title: '编制时间', dataIndex: 'editDate', width: 250 },
  editDeptName: {
    title: '编制人所属部门',
    dataIndex: 'editDeptName',
    width: 150,
  },
  notes: {
    title: '备注',
    dataIndex: 'notes',
    width: 150,
  },

  remove: {
    title: '选项',
    dataIndex: 'remove',
    componentName: 'removeButton',
  },
  operate: {
    title: '操作',
    dataIndex: 'operate',
    slotName: 'operate',
    fixed: 'right',
    width: 300,
  },
};
